<html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script type="text/javascript" src="http://hq.sinajs.cn/list=sh000001,sz002190,sz000715,sh600843,sz000597,sz000990,sh600051,sh600293" language="javascript"></script>
<script type="text/javascript">
    function getData(){
        var elements=hq_str_sz002190.split(",");
        var elements2=hq_str_sh600843.split(",");
        var elements3=hq_str_sh600051.split(",");
        var elements4=hq_str_sh600293.split(",");
        var szzs=hq_str_sh000001.split(",");
        document.getElementById('stock').innerHTML = elements[3];
        document.getElementById('stock2').innerHTML = elements2[3];
        document.getElementById('stock3').innerHTML = elements3[3];
        document.getElementById('stock4').innerHTML = elements4[3];
        document.getElementById('stock5').innerHTML = szzs[3];


        if(elements3[3]>8.63){
            //alert('ok');
        } else if(elements2[3]>5.95){
           // alert('oh');
        }
        refreshData();

    }
    function refreshData(){
        setTimeout("refresh()",3000);
    }
    function refresh(){
        location.href = "http://localhost/test/test1.php";
    }
    window.onload=function(){ 
        getData();
    }

</script>
<br />
<div id="stock" style="color:white">
</div>
<div id="stock2" style="color:white">
</div>
<div id="stock3" style="color:white">
</div>
<div id="stock4" style="color:white">
</div>
<div id="stock5" style="color:white">
</div>
</html>